<include file="Public:header" />
<style>
	.table-striped tbody tr:hover {
		background-color: #CDDEFB;
	}
	.data-table tbody td {
		height: 40px;
		line-height: 40px;
	}
	.btn-primary {
		background-color: #1abc9c;
	}
	.tongji span{margin-right:10px;font-size:14px;}
</style>

<div id="main-content">
	<div id="top-alert" class="fixed alert alert-error" style="display: none;">
		<button class="close fixed" style="margin-top: 4px;">&times;</button>
		<div class="alert-content">警告内容</div>
	</div>
<div id="main" class="main">
	<div class="main-title-h">
		<span class="h1-title">交易挖矿</span>
			<notempty name="name"> <span class="h2-title">>><a href="{:U('Invit/mining')}">挖矿列表</a></span> </notempty>
		</div>
		<div class="cf">
			<div class="fl tongji">
				<span>全站奖励总计：<b style="color:#F98A3F">{$tongji['heji']*1}</b></span>
				<span>已发放奖励：<b style="color:#219B20">{$tongji['ydz']*1}</b></span>
				<span>待释放奖励：<b style="color:#FF474A">{$tongji['wdz']*1}</b></span>
			</div>
			<div class="search-form fr cf">
				<div class="sleft">
					<form name="formSearch" id="formSearch" method="get" name="form1" action="{:U('Invit/mining')}">
						<select style="width:120px;float:left;margin-right:10px;" name="status" class="form-control">
							<option value="99" <empty name="Think.get.status">selected</empty> >全部状态</option>
							<option value="0" <eq name="Think.get.status" value="0">selected</eq> >未到账</option>
							<option value="1" <eq name="Think.get.status" value="1">selected</eq> >已到账</option>
						</select>
						<input type="text" name="name" class="search-input" value="{$Think.get.name}" placeholder="请输入用户名"> <a class="sch-btn" href="javascript:;" id="search"><i class="btn-search"></i></a>
					</form>
					<script>
						//搜索功能
						$(function(){
							$('#search').click(function(){
								$('#formSearch').submit();
							});
						});
						//回车搜索
						$(".search-input").keyup(function(e){
							if(e.keyCode===13){
								$("#search").click();
								return false;
							}
						});
					</script>
				</div>
			</div>
			
			<div class="fr" style="margin-right:20px;">
				<a class="btn btn-success" target="_blank" href="{:U('Home/Reward/MiningHandle')}">发放挖矿奖励</a>
			</div>
		</div>
		<div class="data-table table-striped">
			<table class="">
				<thead>
					<tr>
						<th class="row-selected row-selected"><input class="check-all" type="checkbox" /></th>
						<th class="">ID</th>
						<th class="">用户名</th>
						<th class="">奖励名称</th>
						<th class="">操作类型</th>
						<th class="">操作数量</th>
						<th class="">支出金额</th>
						<th class="">奖励金额</th>
						<th class="">奖励时间</th>
						<th class="">奖励状态</th>
					</tr>
				</thead>
				<tbody>
					<notempty name="list">
						<volist name="list" id="vo">
							<tr>
								<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
								<td>{$vo.id}</td>
								<td>{$vo['username']}</td>
								<td>{$vo.name}</td>
								<td>{$vo.type}</td>
								<td>{$vo['num']}</td>
								<td>{$vo['mum']}</td>
								<td><b style="color:#067FFF;">{$vo['fee']}</b></td>
								<td>{$vo.addtime|addtime}</td>
								<td>
									<eq name="vo.status" value="0">未到账</eq>
									<eq name="vo.status" value="1">已到账</eq>
								</td>
							</tr>
						</volist>
					<else />
						<td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
					</notempty>
				</tbody>
			</table>
			<div class="page">
				<div>{$page}</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		//主导航高亮
		$('.invit-box').addClass('current');
		//边导航高亮
		$('.invit-index').addClass('current');
		$('title').html('交易挖矿-'+'__WEBTITLE__');
	});
</script>
<include file="Public:footer" />